package com.im.service.exception;

public enum ErrorCode {
    USER_NOT_REGISTRY_ERROR("1001", "user not register error"),
    INVALID_MESSAGE_FORMAT("2001", "invalid message format"),
    UNSUPPORTED_MESSAGE_TYPE("2002", "unsupported message type"),
    ;

    private final String code;
    private final String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
